package com.heima.admin.controller.v1;

import com.heima.admin.service.AdUserOperationlogService;
import com.heima.model.admin.dtos.AdUserlogDTO;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "操作日志记录", tags = "操作日志记录")
@RestController
@RequestMapping("/api/v1/userlog")
public class AdUserOperationlogController {
    @Autowired
    AdUserOperationlogService adUserOperationlogService;


    @ApiOperation(value = "操作日志记录查询")
    @PostMapping("/list")
    public ResponseResult list(@RequestBody AdUserlogDTO dto) {
        return adUserOperationlogService.list(dto);
    }
}
